package com.tang.campus_market.filter;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;

/**
 * TODO:
 * 通过session获取user判断是否是管理员，不是管理员则对特定页面的访问进行阻止
 */
//@WebFilter(filterName = "LoginFilter",urlPatterns =  //{"/user/in/*"}
//        {"/user/id/*"}
//)
public class AdminFilter implements Filter {
    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {

    }
}
